package domain;

import java.util.Date;

public class Question {
    private Integer id;
    private Integer userId;
    private String content;
    private String tel;
    private String answer;
    private Date proposeTime;
    private Date answerTime;

    public Question() {
    }

    public Question(Integer id, Integer userId, String content, String tel, String answer, Date proposeTime, Date answerTime) {
        this.id = id;
        this.userId = userId;
        this.content = content;
        this.tel = tel;
        this.answer = answer;
        this.proposeTime = proposeTime;
        this.answerTime = answerTime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }

    public Date getProposeTime() {
        return proposeTime;
    }

    public void setProposeTime(Date proposeTime) {
        this.proposeTime = proposeTime;
    }

    public Date getAnswerTime() {
        return answerTime;
    }

    public void setAnswerTime(Date answerTime) {
        this.answerTime = answerTime;
    }

    @Override
    public String toString() {
        return "Question{" +
                "id=" + id +
                ", userId=" + userId +
                ", content='" + content + '\'' +
                ", tel='" + tel + '\'' +
                ", answer='" + answer + '\'' +
                ", proposeTime=" + proposeTime +
                ", answerTime=" + answerTime +
                '}';
    }
}
